<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>注册页面</title>
		<link rel="shortcut icon" href="../img/favicon.ico" />
		<link rel="stylesheet" href="../css/base.css" />
		<link rel="stylesheet" href="../css/signUp.css" />
		<script type="text/javascript" src="../js/signUp.js"></script>
	</head>
	<body>
		
		<div class="father">
			<div class="top_div"></div>
			
			<form action="#" method="get" class="myForm" onsubmit="return checkSubmit()">
				<input class="user" type="text" placeholder="账号" autofocus="autofocus" /><br />
				<div class="promptDiv"></div>
				<input class="pwd" type="password" placeholder="密码" /><br />
				<div class="promptDiv"></div>
				<input class="pwd" type="password" placeholder="请再次输入密码" /><br />
				<div class="promptDiv"></div>
				<input class="phone" type="text" placeholder="手机号" />
				<input class="send" type="button" value="发送验证码" /><br />
				<div class="promptDiv"></div>
				<input class="verify" type="text" placeholder="验证码" /><br />
				<div class="promptDiv"></div>
				<input class="signUp" type="submit" value="注册" />
			</form>
			
			<div class="bottom_div">
				已有账号？
				<a href="login.html">登录</a>
			</div>
		</div>
		
		<script>
			
			var user = document.getElementsByClassName('user')[0];
			
			var promptDiv = document.getElementsByClassName('promptDiv');
			
			user.onfocus = function(){
				
				promptDiv[0].innerText = '只能是字母、数字、下划线的组合';
				this.onblur = function(){
					
					promptDiv[0].innerText = '';
					
				}
				
			}
			
		</script>
		
	</body>
</html>
